/**
 * 全景图添加 api 封装
 *
 * @Author:    骆伟林
 * @Date:      2025-10-22 17:09:49
 * @Copyright  软件需求工程第八组
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const pictureApi = {

  /**
   * 分页查询  @author  骆伟林
   */
  queryPage : (param) => {
    return postRequest('/picture/queryPage', param);
  },

  /**
   * 增加  @author  骆伟林
   */
  add: (param) => {
      return postRequest('/picture/add', param);
  },

  /**
   * 修改  @author  骆伟林
   */
  update: (param) => {
      return postRequest('/picture/update', param);
  },


  /**
   * 删除  @author  骆伟林
   */
  delete: (id) => {
      return getRequest(`/picture/delete/${id}`);
  },

  /**
   * 批量删除  @author  骆伟林
   */
  batchDelete: (idList) => {
      return postRequest('/picture/batchDelete', idList);
  },

  /**
   *获取全景图地点列表 @author 骆伟林
   */
   getAddressList: () => {
      return getRequest(`/picture/getAddressList`);
  },
   /**
   *根据地点id获取图片列表 @author 骆伟林
   */
   getPictureByAddressId: (addressId) => {
    return getRequest(`/picture/getPictureByAddressId/${addressId}`);
},
};
